<template>
    <div class="article_details_header_box outer_shadows">
        <p class="article_details_header_title">{{title.msg}}</p>
        <p class="article_details_header_time">{{dayjs(title.time).format(base.timeFormat)}} • 阅读{{format.n_format(title.visit)}} </p>
    </div>
</template>

<!--文章标题-->
<script setup>
import format from "@/config/methods/digital.js"
import base from "@/config/constant/constant.js"
import dayjs from "dayjs";

//文章标题内容
const title = defineProps({
    msg:String,
    visit:Number,
    time:String,
})
</script>

<style scoped>
.article_details_header_box{
    padding: 20px;
}
.article_details_header_title{
    width: 100%;
    font-size: 25px;
    font-weight: 500;
}
.article_details_header_time{
    font-size: 15px;
    padding: 10px 0 10px 0;
}
</style>